//
//  JWTUserDetailCell.m
//  JWT
//
//  Created by ndm on 17/1/20.
//  Copyright © 2017年 com.jwtsoft. All rights reserved.
//

#import "JWTUserDetailCell.h"

@implementation JWTUserDetailCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self){
        _hintNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(2*Cell_Margin, Cell_Margin, (UISCREEN_WIDTH-5*Cell_Margin)*0.5, 34)];
        _hintNameLabel.font = Text_Font13;
        _hintNameLabel.textColor = RGB_LightGray;
        [self addSubview:_hintNameLabel];
        
        _iconImageView = [[UIImageView alloc] init];
        _iconImageView.frame = CGRectMake(UISCREEN_WIDTH-_hintNameLabel.height-35-3*Cell_Margin,_hintNameLabel.top, _hintNameLabel.height*1.5, _hintNameLabel.height*1.5);
        _iconImageView.layer.borderWidth = 1;
        _iconImageView.layer.cornerRadius = _iconImageView.height *0.5;
        _iconImageView.layer.borderColor = RGB_LightGray.CGColor;
        _iconImageView.layer.masksToBounds = YES;
        _iconImageView.hidden = YES;
        [self addSubview:_iconImageView];
        
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(_hintNameLabel.right+Cell_Margin, _hintNameLabel.top, _hintNameLabel.width-Cell_Margin*1.4, _hintNameLabel.height)];
        _contentLabel.font = Text_Font13;
        _contentLabel.textColor = RGB_DarkGray;
        _contentLabel.textAlignment = NSTextAlignmentRight;
        [self addSubview:_contentLabel];
        self.frame = CGRectMake(self.left, self.top, UISCREEN_WIDTH, _contentLabel.bottom+Cell_Margin);
    }
    return self;
}


@end
